home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Counter SOM Lib / •SOM / SCounter.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-28  |  1.4 KB  |  45 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  *  This file was generated by the SOM Compiler.
  4.  *  Generated using:
  5.  *     SOM incremental update: 2.33
  6.  */
  7.  
  8. #ifdef SYMANTEC_CPLUS
  9. #undef PRAGMA_IMPORT_SUPPORTED
  10. #define PRAGMA_IMPORT_SUPPORTED 1
  11. #endif
  12.  
  13. #define SOM_Module_scounter_Source
  14. #include "SCounter.xih"
  15.  
  16. //==========================================================================
  17. SOM_Scope void  SOMLINK 
  18. COUNTIncrement(DevUniv_SCounter *somSelf, Environment *ev)
  19. {
  20.     DebugStr((unsigned char const *)"Got to Increment!\n");
  21.     DevUniv_SCounterData *somThis = DevUniv_SCounterGetData(somSelf);
  22.     DevUniv_SCounterMethodDebug("DevUniv_SCounter","COUNTIncrement");
  23.     somThis->value++;
  24. }
  25.  
  26. //------------------------------------------------------------------------
  27. SOM_Scope void  SOMLINK 
  28. COUNTDecrement(DevUniv_SCounter *somSelf, Environment *ev)
  29. {
  30.     DebugStr((unsigned char const *)"Got to Decrement!\n");
  31.     DevUniv_SCounterData *somThis = DevUniv_SCounterGetData(somSelf);
  32.     DevUniv_SCounterMethodDebug("DevUniv_SCounter","COUNTDecrement");
  33.     somThis->value--;
  34. }
  35.  
  36. //------------------------------------------------------------------------
  37. SOM_Scope void  SOMLINK 
  38. COUNTSquare(DevUniv_SCounter *somSelf, Environment *ev)
  39. {
  40.     DebugStr((unsigned char const *)"Got to Square!\n");
  41.     DevUniv_SCounterData *somThis = DevUniv_SCounterGetData(somSelf);
  42.     DevUniv_SCounterMethodDebug("DevUniv_SCounter","COUNTSquare");
  43.     somThis->value = somThis->value * somThis->value;
  44. }
  45.